import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class AnnotatedRegionPage extends StatefulWidget {
  const AnnotatedRegionPage({Key? key}) : super(key: key);

  @override
  State<AnnotatedRegionPage> createState() => _AnnotatedRegionPageState();
}

class _AnnotatedRegionPageState extends State<AnnotatedRegionPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: AnnotatedRegion<SystemUiOverlayStyle>(
        value: SystemUiOverlayStyle.dark,
        child: Column(
          mainAxisSize: MainAxisSize.max,
          children: [
            Expanded(child: Container(color: Colors.blue)),
            Expanded(child: Container(color: Colors.yellow)),
          ],
        ),
      ),
    );
  }
}
